home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / gcc / newgccstart.lha / source.lha / startup / makefile < prev    next >
Encoding:
Makefile  |  1994-03-14  |  705 b   |  34 lines

  1. CPP=gcc:lib/gcc-lib/amigados/2.5.8/cpp
  2. OPTIONS=gcc -I ../headers -I include: -S -O3 -finline-functions
  3. BOPTIONS=$(OPTIONS) -fbaserel -msmall-code
  4.  
  5. # Pattern: How to create an object file .o out of an assembler file .s
  6. %.o: %.s
  7.     gcc -c $*.s
  8.  
  9. all: crt0.o bcrt0.o rcrt0.o
  10.  
  11. clean:
  12.     -delete auto.s auto.bs "#?crt0.s"
  13.  
  14. crt0.o:  crt0.s
  15.  
  16. bcrt0.o: bcrt0.s
  17.  
  18. rcrt0.o: rcrt0.s
  19.  
  20. crt0.s:  startup.s auto.s
  21.     $(CPP) -P -D CRT0  -include startup.s auto.s crt0.s
  22.  
  23. bcrt0.s: startup.s auto.bs
  24.     $(CPP) -P -D BCRT0 -include startup.s auto.bs bcrt0.s
  25.  
  26. rcrt0.s: startup.s auto.bs
  27.     $(CPP) -P -D RCRT0 -include startup.s auto.bs rcrt0.s
  28.  
  29. auto.s:  auto.c
  30.     $(OPTIONS) auto.c -o auto.s
  31.  
  32. auto.bs: auto.c
  33.     $(BOPTIONS) auto.c -o auto.bs
  34.